﻿using EPiServer.Core;
using EPiServer.DataAbstraction;
using PageTypeBuilder;
using TemplateFoundation.Tabs;

namespace TemplateFoundation.PageTypes
{
    /// <summary>
    /// Base class for root article containers, such as a start page for a news archive or blog
    /// </summary>
    public abstract class ArticleContainerPageBase : StandardPageBase
    {
        /// <summary>
        /// Gets or sets the maximum number of articles to display in a list by default
        /// </summary>
        /// <value></value>
        [PageTypeProperty(
            EditCaption = "Max count",
            HelpText = "The maximum number of articles to include in the list by default",
            UniqueValuePerLanguage = false,
            SortOrder = 10,
            Tab=typeof(InformationTab),
            Type = typeof (PropertyNumber))]
        public virtual int ArticlesMaxCount { get; set; }
    }
}